// main.js（调整引入顺序）
import { createApp } from "vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css"; // 1. 先加载 Element Plus 默认样式
import App from "./App.vue";
import router from "./router";
import store from "./store";
import registerGlobalComponents from "./component/index.js";
import zhCn from "element-plus/es/locale/lang/zh-cn";

// 2. 再加载自定义全局样式（含按钮变量），覆盖 Element Plus 默认值
import "@/assets/global/common.css";
// 3. 最后加载 Tailwind CSS，避免 Tailwind 覆盖自定义变量
import "@/assets/css/index.css";

const app = createApp(App);
registerGlobalComponents(app);
app.use(ElementPlus, { locale: zhCn }).use(store).use(router);
app.mount("#app");
